package someTestExcemple.huaweiOd.container.array;

import java.util.Arrays;
import java.util.StringJoiner;

public class MainTest {
    public static void main(String[] args) {
        System.out.println(Math.abs(-1));
        StringJoiner joiner = new StringJoiner(",","[","]");
        joiner.add("a").add("b").add("c");
        System.out.println(joiner);
        String s = "[[1,4],[2,5],[7,9],[14,18]]";
        s = s.replace("[","").replace("]","").replace(" ","");
        System.out.println(s);
        String[] split = s.split("\\],\\[");
        System.out.println(Arrays.toString(split));
        String[] s1 = new String[2];
        s1[0]="a";
        s1[1]="a";
        System.out.println(Arrays.toString(s1));
        int[][] t = new int[3][2]; //可以看作3个长度为2的数组组成的数组 所以t.length为3
        System.out.println(t.length);
        String s2 ="12G";
        String[] str2 = s2.split("M");
        System.out.println(Arrays.toString(str2));
        System.out.println(s2.indexOf("M"));
    }
}
